package com.mvc.web.order.vo;

import java.math.BigDecimal;

import com.mvc.web.common.annotation.NumberRange;
import com.mvc.web.common.annotation.StringValidate;
import com.mvc.web.common.base.BaseVo;
import com.mvc.web.common.ibatis.IbatisAliasConfig;
import com.mvc.web.order.vo.OrderEnum.OrderStatus;

@IbatisAliasConfig(alias="order")
public class OrderVo extends BaseVo{
	
	private Integer     id;
	private Integer     orderId;
	@StringValidate(isCanEmpty=false,maxLength=40,message="请输入40字以内的车主姓名")
	private String  	carOwnerName;//车主名字
	@StringValidate(isCanEmpty=false,isPhone=true,message="请输入正确格式的车主手机号码")
	private String  	carOwnerPhone;//车主手机号
	@NumberRange(max=99999999,message="运费最大值不能超过99999999元")
	private BigDecimal  transportCharge;//运费(元)
	@NumberRange(max=1000,message="货物重量最大值不能1000吨")
	private Double      weight;//货物重量(T)
	@StringValidate(maxLength=100,message="出发地长度不能超过100个字")
	private String  	startPoint;//出发地
	@StringValidate(maxLength=100,message="结束地长度不能超过100个字")
	private String  	destination;//结束地
	private String  	startLongitude;//出发地经度
	private String  	startLatitude;//出发地纬度
	private String  	destLongitude;//目的地经度
	private String  	destLatitude;//目的地纬度
	@StringValidate(maxLength=20,message="货主名字不能超过20个字")
	private String  	cargoOwnerName;//货主名字
	@StringValidate(isPhone=true,message="请输入正确格式的货主联系方式")
	private String  	cargoOwnerPhone;//货主联系方式
	private String  	orderNo;//订单编号
	private String  	initial;//车主首字母
	private Integer		status;//1未开始2运送中3已送达4已结束
	@SuppressWarnings("unused")
	private String  	statusValue;//状态值
	@SuppressWarnings("unused")
	private String 		statusColor;//状态背景图
	private Integer     carOwnerId;//车主id
	private String      createTime;
	
	
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public Integer getCarOwnerId() {
		return carOwnerId;
	}
	public void setCarOwnerId(Integer carOwnerId) {
		this.carOwnerId = carOwnerId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getInitial() {
		return initial;
	}
	public void setInitial(String initial) {
		this.initial = initial;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getStatusValue() {
		return status==null?null:OrderStatus.getNameByIndex(status);
	}
	public void setStatusValue(String statusValue) {
		this.statusValue = statusValue;
	}
	public String getStatusColor() {
		return status==null?null:OrderStatus.getColorByIndex(status);
	}
	public void setStatusColor(String statusColor) {
		this.statusColor = statusColor;
	}
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public String getCarOwnerName() {
		return carOwnerName;
	}
	public void setCarOwnerName(String carOwnerName) {
		this.carOwnerName = carOwnerName;
	}
	public String getCarOwnerPhone() {
		return carOwnerPhone;
	}
	public void setCarOwnerPhone(String carOwnerPhone) {
		this.carOwnerPhone = carOwnerPhone;
	}
	public BigDecimal getTransportCharge() {
		return transportCharge;
	}
	public void setTransportCharge(BigDecimal transportCharge) {
		this.transportCharge = transportCharge;
	}
	public Double getWeight() {
		return weight;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public String getStartPoint() {
		return startPoint;
	}
	public void setStartPoint(String startPoint) {
		this.startPoint = startPoint;
	}
	public String getDestination() {
		return destination;
	}
	public void setDestination(String destination) {
		this.destination = destination;
	}
	public String getStartLongitude() {
		return startLongitude;
	}
	public void setStartLongitude(String startLongitude) {
		this.startLongitude = startLongitude;
	}
	public String getStartLatitude() {
		return startLatitude;
	}
	public void setStartLatitude(String startLatitude) {
		this.startLatitude = startLatitude;
	}
	public String getDestLongitude() {
		return destLongitude;
	}
	public void setDestLongitude(String destLongitude) {
		this.destLongitude = destLongitude;
	}
	public String getDestLatitude() {
		return destLatitude;
	}
	public void setDestLatitude(String destLatitude) {
		this.destLatitude = destLatitude;
	}
	public String getCargoOwnerName() {
		return cargoOwnerName;
	}
	public void setCargoOwnerName(String cargoOwnerName) {
		this.cargoOwnerName = cargoOwnerName;
	}
	public String getCargoOwnerPhone() {
		return cargoOwnerPhone;
	}
	public void setCargoOwnerPhone(String cargoOwnerPhone) {
		this.cargoOwnerPhone = cargoOwnerPhone;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
}
